<?php
if(!interface_exists('XModel', false)){
	require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'XModel.php');
}
abstract class XAbstractModel extends XObject implements XModel{	
	/**
	 * @return XAbstractModel
	 */
	public function set($key, $value){
		$this->$key = $value;
		return $this;
	}

	/**
	 * @return mixed
	 */	
	public function get($key){
		if(!isset($this->$key)){
			return null;
		}
		return $this->$key;
	}
}
?>